<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../../../assets/docs.css" rel="stylesheet" type="text/css" media="screen" />
<title>MooTools 1.3 Documentation - Locale/Form.Validator</title>
</head>

<body>
  <div class="doc">
    <div class="methods">
      <h4 class="menu-item"><a href="#Form-Validator">Form.Validator</a></h4>
      <div class="menu-item"><a href="#"></a></div>
      <div class="menu-item"><a href="#"></a></div>
      <div class="menu-item"><a href="#"></a></div>
    </div>
    <div class="l-border r-border span-15 content">
      <h1 id="Form-Validator"><a href="#Form-Validator">Locale: Form.Validator</a></h1>
      <p class="description">Contains the messages for <a href="../../../docs/more/Forms/Form.Validator.html#Form-Validator">Form.Validator</a>.</p>
      <h2><a href="#">Usage</a></h2>
      <p class="description">Simply change the language property to the <em>en-US</em>.</p>
      <pre class="javascript">Locale.<span class="kw2">use</span><span class="br0">(</span><span class="st0">"en-US"</span><span class="br0">)</span>;
</pre>
      <h3>See also:</h3>
      <ul>
        <li><a href="../../../docs/more/Forms/Form.Validator.html#Form-Validator">Form.Validator</a></li>
        <li><a href="../../../docs/more/Locale/Locale.html">Locale</a></li>
      </ul>
      <h2><a href="#">Available Languages</a></h2>
      <table class="description">
        <tr>
          <th>Language</th>
          <th>Locale Code</th>
          <th>Authors</th>
        </tr>
        <tr>
          <td>Arabic</td>
          <td>ar</td>
          <td>Chafik Barbar</td>
        </tr>
        <tr>
          <td>Catalan</td>
          <td>ca-CA</td>
          <td>Miquel Hudin</td>
        </tr>
        <tr>
          <td>Chinese (simplified)</td>
          <td>zh-CHS</td>
          <td>YMind Chan</td>
        </tr>
        <tr>
          <td>Chinese (traditional)</td>
          <td>zh-CHT</td>
          <td>YMind Chan</td>
        </tr>
        <tr>
          <td>Czech</td>
          <td>cs-CZ</td>
          <td>Jan &#268;ern&yacute;</td>
        </tr>
        <tr>
          <td>Danish</td>
          <td>da-DK</td>
          <td>Martin Overgaard</td>
        </tr>
        <tr>
          <td>Dutch</td>
          <td>nl-NL</td>
          <td>Lennart Pilon</td>
        </tr>
        <tr>
          <td>English</td>
          <td>en-US</td>
          <td>Aaron Newton</td>
        </tr>
        <tr>
          <td>Estonian</td>
          <td>et-EE</td>
          <td>Kevin Valdek</td>
        </tr>
        <tr>
          <td>Finnish</td>
          <td>fi-FI</td>
          <td>ksel</td>
        </tr>
        <tr>
          <td>French</td>
          <td>fr-FR</td>
          <td>Miquel Hudin</td>
        </tr>
        <tr>
          <td>German (Switzerland)</td>
          <td>de-CH</td>
          <td>Michael van der Weg</td>
        </tr>
        <tr>
          <td>German</td>
          <td>de-DE</td>
          <td>Frank Rossi, Ulrich Petri</td>
        </tr>
        <tr>
          <td>Hungarian</td>
          <td>hu-HU</td>
          <td>Zsolt Szeghe&#337;</td>
        </tr>
        <tr>
          <td>Italian</td>
          <td>it-IT</td>
          <td>ALeonardo Laureti, Andrea Novero</td>
        </tr>
        <tr>
          <td>Japanese</td>
          <td>ja-JP</td>
          <td>Noritaka Horio</td>
        </tr>
        <tr>
          <td>Norwegian</td>
          <td>no-NO</td>
          <td>Espen 'Rexxars' Hovlandsdal</td>
        </tr>
        <tr>
          <td>Persian (Farsi)</td>
          <td>fa</td>
          <td>Amir Hossein Hodjaty Pour</td>
        </tr>
        <tr>
          <td>Polish</td>
          <td>pl-PL</td>
          <td>Oskar Krawczyk</td>
        </tr>
        <tr>
          <td>Portuguese (Brazil)</td>
          <td>pt-BR</td>
          <td>F&aacute;bio Miranda Costa</td>
        </tr>
        <tr>
          <td>Portuguese</td>
          <td>pt-PT</td>
          <td>Miquel Hudin</td>
        </tr>
        <tr>
          <td>Russian</td>
          <td>ru-RU-unicode</td>
          <td>Evstigneev Pavel</td>
        </tr>
        <tr>
          <td>Slovenian</td>
          <td>si-SI</td>
          <td>Radovan Lozej</td>
        </tr>
        <tr>
          <td>Spanish (Argentina)</td>
          <td>es-AR</td>
          <td>Diego Massanti</td>
        </tr>
        <tr>
          <td>Spanish</td>
          <td>es-ES</td>
          <td>Alfons Sanchez</td>
        </tr>
        <tr>
          <td>Swedish</td>
          <td>sv-SE</td>
          <td>Martin Lundgren</td>
        </tr>
        <tr>
          <td>Ukrainian</td>
          <td>uk-UA</td>
          <td>Slik</td>
        </tr>
      </table>
      <h3>Notes:</h3>
      <ul>
        <li>Chinese includes a <code>validate-currency-yuan</code> validator</li>
      </ul>
      <h2><a href="#">Keys/Values</a></h2>
      <ul class="description">
        <li>required - (<em>string</em>) 'This field is required.'</li>
        <li>minLength - (<em>string</em>) 'Please enter at least {minLength} characters (you entered {length} characters).' where <em>minLength</em> and <em>length</em> are variables for the minimum length and the length the user entered.</li>
        <li>maxLength - (<em>string</em>) 'Please enter no more than {maxLength} characters (you entered {length} characters).' where <em>maxLength</em> and <em>length</em> are variables for the maximum length and the length the user entered.</li>
        <li>integer - (<em>string</em>) 'Please enter an integer in this field. Numbers with decimals (e.g. 1.25) are not permitted.'</li>
        <li>numeric - (<em>string</em>) 'Please enter only numeric values in this field (i.e. "1" or "1.1" or "-1" or "-1.1").'</li>
        <li>digits - (<em>string</em>) 'Please use numbers and punctuation only in this field (for example, a phone number with dashes or dots is permitted).'</li>
        <li>alpha - (<em>string</em>) 'Please use letters only (a-z) with in this field. No spaces or other characters are allowed.'</li>
        <li>alphanum - (<em>string</em>) 'Please use only letters (a-z) or numbers (0-9) only in this field. No spaces or other characters are allowed.'</li>
        <li>dateSuchAs - (<em>string</em>) 'Please enter a valid date such as {date}' where <em>date</em> is an example of a valid date entry</li>
        <li>dateInFormatMDY - (<em>string</em>) 'Please enter a valid date such as MM/DD/YYYY (i.e. "12/31/1999")'</li>
        <li>email - (<em>string</em>) 'Please enter a valid email address. For example "fred@domain.com".'</li>
        <li>url - (<em>string</em>) 'Please enter a valid URL such as http://www.google.com.'</li>
        <li>currencyDollar - (<em>string</em>) 'Please enter a valid $ amount. For example $100.00 .'</li>
        <li>oneRequired - (<em>string</em>) 'Please enter something for at least one of these inputs.'</li>
        <li>errorPrefix - (<em>string</em>)  'Error: '</li>
        <li>warningPrefix - (<em>string</em>)  'Warning: '</li>
      </ul>
    </div>
  </div>
<script type="text/javascript" src="../../../assets/mootools-core-1.3.js"></script>
<script type="text/javascript" src="../../../assets/mootools-more-smoothscroll.js"></script>
<script type="text/javascript" src="../../../assets/doc-assist.js"></script>
</body>
</html>
